/**********************************
 * @Author: Ronnie Zhang
 * @LastEditor: Ronnie Zhang
 * @LastEditTime: 2023/12/05 21:29:51
 * @Email: zclzone@outlook.com
 * Copyright © 2023 Ronnie Zhang(大脸怪) | https://isme.top
 **********************************/

import { request } from '@/utils'

export default {
  read: (params = {}) => request.post('/system/delivery/order/page', { ...params }),
  getOrderPO: id => request.get(`/system/order/detail/${id}`), // 销售单详情
  confirmDeliveryOrder: (params = {}) => request.post(`/system/delivery/order/confirm`, { ...params }), // 接单
  makingCompleted: (params = {}) => request.post(`/system/delivery/order/making/completed`, { ...params }), // 制作完成
  getDeliveryOrderLog: id => request.get(`/system/order/log/delivery/order//${id}`), // 销售单详情
  getDeliverOrderVO: id => request.get(`/system/delivery/order/${id}`), // 销售单详情
  getDadaQueryFee: id => request.get(`/system/errand/dada/query/fee/${id}`), // 达达询价
  getDadaQueryFeeThen: (params = {}) => request.post(`/system/errand/dada/query/then/${params.id}`, { ...params }), // 达达下单
  getErrandOrder: id => request.get(`/system/errand/dada/${id}`), // 达达订单详情
  cancelErrandOrder: (params = {}) => request.post(`/system/errand/dada/cancel`, { ...params }), // 取消跑腿
}
